// pages/tutorial/index.js
import config from '../../config/index.js'
import wxRequest from '../../utils/wxRequest.js'
const app = getApp();
Page({

  /**
   * 页面的初始数据
   */
  data: {
    firststep: '<script language="javascript" src="http://libs.baidu.com/jquery/1.8.3/jquery.js"></script>',
    secondstep: '<script type="text/javascript">arr_wx =["weixin824hj","weixin34gg"];  //微信号设置 var wx_index = Math.floor((Math.random() * arr_wx.length)); var stxlwx = arr_wx[wx_index]; //微信随机出来的变量，复制统计必须要保持微信变量名为 stxlwx。</script>',
    thirdstep: '<span class="wx_click" style="display: block;height:100%;width: 100%;"><script type="text/javascript">document.write(stxlwx);</script></span>',
    body: '</body>',
    fourthstep: {}
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function(options) {
    var that = this;
    var unicode_id = wx.getStorageSync('userInfo')['unicode_id'];

    var str = "<script src='http://api.yidian1.cn/js.php?token=" + unicode_id + " type='text/javascript'></script>";
    that.setData({
      fourthstep: str,
    })
  }
})